//
//  MYGHealthStastiscCardModel.swift
//  MYGrow
//
//  Created by 林矗 on 2024/3/9.
//

import UIKit

struct MYGHealthStastiscCardModel {
    var type: MYGHealthStatisticsType
    var icon: String {
        "Health/Stastisc/\(type.rawValue)_icon"
    }
    
    var themeColor: UIColor {
        switch type {
        case .pressure:
            UIColor.rgba(255, 135, 13)
        case .sugar:
            UIColor.rgba(100, 100, 255)
        case .heart:
            UIColor.rgba(251, 52, 73)
        case .bmi:
            UIColor.rgba(15, 159, 149)
        }
    }
    
    var title: String {
        switch type {
        case .pressure:
            "血压"
        case .sugar:
            "血糖"
        case .heart:
            "心率"
        case .bmi:
            "BMI"
        }
    }
    
    var unit: String {
        switch type {
        case .pressure:
            "毫米汞柱"
        case .sugar:
            "mmol/L"
        case .heart:
            "次/分钟"
        case .bmi:
            "BMI"
        }
    }
    
    var subtitle: String?
    var data: String?
}
